import 'package:flutter_cwhisky/pages/login/login_logic.dart';
import 'package:flutter_cwhisky/pages/login/login_view.dart';
import 'package:get/get.dart';

import '../pages/index/index_binding.dart';
import '../pages/index/index_view.dart';
import '../pages/publish/publish_binding.dart';
import '../pages/publish/publish_view.dart';
import '../pages/search/search_binding.dart';
import '../pages/search/search_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static final routes = <GetPage>[
    GetPage(
      name: Routes.index,
      page: () => IndexPage(),
      binding: IndexBinding(),
    ),
    GetPage(
      name: Routes.login,
      transition: Transition.downToUp,
      transitionDuration:const Duration(milliseconds: 350),

      page: () => LoginPage(),
    ),
    GetPage(
      name: Routes.search,
      page: () => SearchPage(),

      binding: SearchBinding(),
    ),
    GetPage(
      name: Routes.publish,
      page: () => PublishPage(),
      transition: Transition.downToUp,
      transitionDuration: Duration(milliseconds: 500),
      binding: PublishBinding(),
    ),
  ];
}
